<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>SSE Demo</title>
    <script>
       var sse = new EventSource("/sse")
       sse.onmessage = function (event) {
           console.log(event.data);
           document.body.innerHTML += event.data + " <br>"
       }
    </script>
</head>
<body>

</body>
</html>